<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/24
  Time: 9:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  index
  </body>
</html>
<script src="js/jquery-2.1.0.min.js" ></script>
<script>
    $(document).ready(function (){

    $.ajax({
        type:"get",
        url:"<%=request.getContextPath()%>/ajax",
        data:[],
        success:function (data){
            console.log(data);
            alert('请求成功');
        }
    })
    });
</script>